<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>RestAPI: RestAPI.amazon.S3.FileObject Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">RestAPI
   &#160;<span id="projectnumber">0.0.2</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><b>RestAPI</b>      </li>
      <li class="navelem"><b>amazon</b>      </li>
      <li class="navelem"><b>S3</b>      </li>
      <li class="navelem"><a class="el" href="classRestAPI_1_1amazon_1_1S3_1_1FileObject.html">FileObject</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a>  </div>
  <div class="headertitle">
<div class="title">RestAPI.amazon.S3.FileObject Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<!-- doxytag: class="RestAPI::amazon::S3::FileObject" --><!-- doxytag: inherits="RestAPI::amazon::service::AWSservice" -->
<p>Object to store.  
 <a href="classRestAPI_1_1amazon_1_1S3_1_1FileObject.html#details">More...</a></p>
<div class="dynheader">
Inheritance diagram for RestAPI.amazon.S3.FileObject:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classRestAPI_1_1amazon_1_1S3_1_1FileObject.png" usemap="#RestAPI.amazon.S3.FileObject_map" alt=""/>
  <map id="RestAPI.amazon.S3.FileObject_map" name="RestAPI.amazon.S3.FileObject_map">
<area href="classRestAPI_1_1amazon_1_1service_1_1AWSservice.html" title="The abstract class of Amazon Web Service." alt="RestAPI.amazon.service.AWSservice" shape="rect" coords="0,0,223,24"/>
</map>
 </div></div>

<p><a href="classRestAPI_1_1amazon_1_1S3_1_1FileObject-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRestAPI_1_1amazon_1_1S3_1_1FileObject.html#aaa1c11c01850529f8a8cb4ac67440125">__init__</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Init a remote File Object inside a bucket.  <a href="#aaa1c11c01850529f8a8cb4ac67440125"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRestAPI_1_1amazon_1_1S3_1_1FileObject.html#acb46cfdb5076fd71fc39a15e8fba342f">addVersion</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Add a verion to the file object.  <a href="#acb46cfdb5076fd71fc39a15e8fba342f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a704375bf37af645711e353cbd95cf429"></a><!-- doxytag: member="RestAPI::amazon::S3::FileObject::existed" ref="a704375bf37af645711e353cbd95cf429" args="" -->
def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRestAPI_1_1amazon_1_1S3_1_1FileObject.html#a704375bf37af645711e353cbd95cf429">existed</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Check if this file object exists inside a <a class="el" href="namespaceS3.html" title="This is the module that wraps all Amazon S3 funtionality.">S3</a> bucket. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRestAPI_1_1amazon_1_1S3_1_1FileObject.html#ad68bf7019ee5b7c08d7263522e87aa3d">chmod</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Change the access control list of the current file object.  <a href="#ad68bf7019ee5b7c08d7263522e87aa3d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRestAPI_1_1amazon_1_1S3_1_1FileObject.html#a4488512e5d71897212c80a85e7af0747">delete</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Delete the file object from the remote server.  <a href="#a4488512e5d71897212c80a85e7af0747"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRestAPI_1_1amazon_1_1S3_1_1FileObject.html#ae4c66b2c4a1dc8635c65ceb2327b627f">url</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the temporary URL to access the protected resource.  <a href="#ae4c66b2c4a1dc8635c65ceb2327b627f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRestAPI_1_1amazon_1_1S3_1_1FileObject.html#a179770be78a633bfc366dcf54296d562">uploader</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Upload large files one chunck at a time using multipart.  <a href="#a179770be78a633bfc366dcf54296d562"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad7b82cf85d81fbca3b224dc610be256f"></a><!-- doxytag: member="RestAPI::amazon::S3::FileObject::finishUpload" ref="ad7b82cf85d81fbca3b224dc610be256f" args="" -->
def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRestAPI_1_1amazon_1_1S3_1_1FileObject.html#ad7b82cf85d81fbca3b224dc610be256f">finishUpload</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Continue unfinished multipart upload. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2ad8e22fddd1259f2edab3ecd7ecae48"></a><!-- doxytag: member="RestAPI::amazon::S3::FileObject::uploadForm" ref="a2ad8e22fddd1259f2edab3ecd7ecae48" args="" -->
def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRestAPI_1_1amazon_1_1S3_1_1FileObject.html#a2ad8e22fddd1259f2edab3ecd7ecae48">uploadForm</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the upload form for Browser upload. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6acee01f07127652ef584eac845c5d9f"></a><!-- doxytag: member="RestAPI::amazon::S3::FileObject::save" ref="a6acee01f07127652ef584eac845c5d9f" args="" -->
def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRestAPI_1_1amazon_1_1S3_1_1FileObject.html#a6acee01f07127652ef584eac845c5d9f">save</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Save the content to local file. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7562dedb5f08ee45c2167cfa1c4bca92"></a><!-- doxytag: member="RestAPI::amazon::S3::FileObject::content" ref="a7562dedb5f08ee45c2167cfa1c4bca92" args="" -->
def&#160;</td><td class="memItemRight" valign="bottom"><b>content</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abe67c680bf25a0fab0e26bbd2a30c878"></a><!-- doxytag: member="RestAPI::amazon::S3::FileObject::upload" ref="abe67c680bf25a0fab0e26bbd2a30c878" args="" -->
def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRestAPI_1_1amazon_1_1S3_1_1FileObject.html#abe67c680bf25a0fab0e26bbd2a30c878">upload</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Upload the content of local file to the File object on remote server. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRestAPI_1_1amazon_1_1S3_1_1FileObject.html#a85511ffd90c357f33efb69a6cbc5455e">sync</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Check if the file in remote(target) and local(source) is the same.  <a href="#a85511ffd90c357f33efb69a6cbc5455e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="add8beaac77a2852765ca2a56636d3e76"></a><!-- doxytag: member="RestAPI::amazon::S3::FileObject::download" ref="add8beaac77a2852765ca2a56636d3e76" args="" -->
def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRestAPI_1_1amazon_1_1S3_1_1FileObject.html#add8beaac77a2852765ca2a56636d3e76">download</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Download the file and store the content in memory. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRestAPI_1_1amazon_1_1S3_1_1FileObject.html#a2437ba0d210f9d433f5e52455b6cf2d9">torrent</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the torrent for downloading the file.  <a href="#a2437ba0d210f9d433f5e52455b6cf2d9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7039a167ecbbc15a850f15ead7d31cb9"></a><!-- doxytag: member="RestAPI::amazon::S3::FileObject::updateInfo" ref="a7039a167ecbbc15a850f15ead7d31cb9" args="" -->
def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRestAPI_1_1amazon_1_1S3_1_1FileObject.html#a7039a167ecbbc15a850f15ead7d31cb9">updateInfo</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the information about the current File Object from remote. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ade537726ad0e4d2a28ada965105a83d3"></a><!-- doxytag: member="RestAPI::amazon::S3::FileObject::getVersionInfo" ref="ade537726ad0e4d2a28ada965105a83d3" args="" -->
def&#160;</td><td class="memItemRight" valign="bottom"><b>getVersionInfo</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8b992eaf0e28793691417d2982a91f77"></a><!-- doxytag: member="RestAPI::amazon::S3::FileObject::versions" ref="a8b992eaf0e28793691417d2982a91f77" args="" -->
def&#160;</td><td class="memItemRight" valign="bottom"><b>versions</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae877a8eb98bdf11405764822810fb4b0"></a><!-- doxytag: member="RestAPI::amazon::S3::FileObject::revision" ref="ae877a8eb98bdf11405764822810fb4b0" args="" -->
def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRestAPI_1_1amazon_1_1S3_1_1FileObject.html#ae877a8eb98bdf11405764822810fb4b0">revision</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the revision number of current version. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRestAPI_1_1amazon_1_1S3_1_1FileObject.html#ad046fe5072f3b4e0a838767465caecf9">useVersion</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Change the file object to a specific version.  <a href="#ad046fe5072f3b4e0a838767465caecf9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRestAPI_1_1amazon_1_1S3_1_1FileObject.html#ac40bdb9fe079b587989e36e50fb28e47">useRevision</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Change the file object to a specific version.  <a href="#ac40bdb9fe079b587989e36e50fb28e47"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab20e2d8a4566a4d6c2327ebf67406453"></a><!-- doxytag: member="RestAPI::amazon::S3::FileObject::roll_back" ref="ab20e2d8a4566a4d6c2327ebf67406453" args="" -->
def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRestAPI_1_1amazon_1_1S3_1_1FileObject.html#ab20e2d8a4566a4d6c2327ebf67406453">roll_back</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Use the current selected version as the remote file Object latest version. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a14a5bd91ece94528c7d6ed863563e880"></a><!-- doxytag: member="RestAPI::amazon::S3::FileObject::__repr__" ref="a14a5bd91ece94528c7d6ed863563e880" args="" -->
def&#160;</td><td class="memItemRight" valign="bottom"><b>__repr__</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a87fa9b131ac599c5b107ccf0634ffc56"></a><!-- doxytag: member="RestAPI::amazon::S3::FileObject::__str__" ref="a87fa9b131ac599c5b107ccf0634ffc56" args="" -->
def&#160;</td><td class="memItemRight" valign="bottom"><b>__str__</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5f315411ab9dbc513a5c377b1ed285e0"></a><!-- doxytag: member="RestAPI::amazon::S3::FileObject::setOwner" ref="a5f315411ab9dbc513a5c377b1ed285e0" args="" -->
def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRestAPI_1_1amazon_1_1service_1_1AWSservice.html#a5f315411ab9dbc513a5c377b1ed285e0">setOwner</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the owner of the AWS service. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a360415be2c893aeedf1aad20ae5b71ad"></a><!-- doxytag: member="RestAPI::amazon::S3::FileObject::setCredential" ref="a360415be2c893aeedf1aad20ae5b71ad" args="" -->
def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRestAPI_1_1amazon_1_1service_1_1AWSservice.html#a360415be2c893aeedf1aad20ae5b71ad">setCredential</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the credential information of the current bucket. <br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a25c601bf49b2d5d0b5e4d64a7d590d53"></a><!-- doxytag: member="RestAPI::amazon::S3::FileObject::target" ref="a25c601bf49b2d5d0b5e4d64a7d590d53" args="" -->
&#160;</td><td class="memItemRight" valign="bottom"><b>target</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a17e3a6fe5b2dbc65c00dd178795801f8"></a><!-- doxytag: member="RestAPI::amazon::S3::FileObject::content" ref="a17e3a6fe5b2dbc65c00dd178795801f8" args="" -->
&#160;</td><td class="memItemRight" valign="bottom"><b>content</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af1b67c2a618cbfff59c1aac8dc7a0afe"></a><!-- doxytag: member="RestAPI::amazon::S3::FileObject::parentBucket" ref="af1b67c2a618cbfff59c1aac8dc7a0afe" args="" -->
&#160;</td><td class="memItemRight" valign="bottom"><b>parentBucket</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aba1a20d7307c4066c7657ff567dcbed1"></a><!-- doxytag: member="RestAPI::amazon::S3::FileObject::AuthKey" ref="aba1a20d7307c4066c7657ff567dcbed1" args="" -->
&#160;</td><td class="memItemRight" valign="bottom"><b>AuthKey</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a618a3869fe4e43468254313d28f5221b"></a><!-- doxytag: member="RestAPI::amazon::S3::FileObject::SecretAccessKey" ref="a618a3869fe4e43468254313d28f5221b" args="" -->
&#160;</td><td class="memItemRight" valign="bottom"><b>SecretAccessKey</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac2635e7c26d21baf4bbb20d3bcb628a3"></a><!-- doxytag: member="RestAPI::amazon::S3::FileObject::securityToken" ref="ac2635e7c26d21baf4bbb20d3bcb628a3" args="" -->
&#160;</td><td class="memItemRight" valign="bottom"><b>securityToken</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a11a29ec248ea4b0c9ecae41ae4518098"></a><!-- doxytag: member="RestAPI::amazon::S3::FileObject::host" ref="a11a29ec248ea4b0c9ecae41ae4518098" args="" -->
&#160;</td><td class="memItemRight" valign="bottom"><b>host</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1e84ae490e41e53c4c3bd4a4575100d6"></a><!-- doxytag: member="RestAPI::amazon::S3::FileObject::deleted" ref="a1e84ae490e41e53c4c3bd4a4575100d6" args="" -->
&#160;</td><td class="memItemRight" valign="bottom"><b>deleted</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8fdf168d996884dd0e531baafafb9683"></a><!-- doxytag: member="RestAPI::amazon::S3::FileObject::deletedAt" ref="a8fdf168d996884dd0e531baafafb9683" args="" -->
&#160;</td><td class="memItemRight" valign="bottom"><b>deletedAt</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a92422f01340b3305b9eb88e1249e1f62"></a><!-- doxytag: member="RestAPI::amazon::S3::FileObject::latest" ref="a92422f01340b3305b9eb88e1249e1f62" args="" -->
&#160;</td><td class="memItemRight" valign="bottom"><b>latest</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab8b3ce1b7a524964cc0cff7a479bf11e"></a><!-- doxytag: member="RestAPI::amazon::S3::FileObject::currentVersion" ref="ab8b3ce1b7a524964cc0cff7a479bf11e" args="" -->
&#160;</td><td class="memItemRight" valign="bottom"><b>currentVersion</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0421c5345311bd9b3ceeb7bcb75cda0a"></a><!-- doxytag: member="RestAPI::amazon::S3::FileObject::etag" ref="a0421c5345311bd9b3ceeb7bcb75cda0a" args="" -->
&#160;</td><td class="memItemRight" valign="bottom"><b>etag</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6824adfcb0215654d2e0dc6c6a6d81bb"></a><!-- doxytag: member="RestAPI::amazon::S3::FileObject::size" ref="a6824adfcb0215654d2e0dc6c6a6d81bb" args="" -->
&#160;</td><td class="memItemRight" valign="bottom"><b>size</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ada1b51487166c35d8d4e6ab63a9b69e1"></a><!-- doxytag: member="RestAPI::amazon::S3::FileObject::versionID" ref="ada1b51487166c35d8d4e6ab63a9b69e1" args="" -->
&#160;</td><td class="memItemRight" valign="bottom"><b>versionID</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a816d848b93778d21b879250c401be305"></a><!-- doxytag: member="RestAPI::amazon::S3::FileObject::lastModified" ref="a816d848b93778d21b879250c401be305" args="" -->
&#160;</td><td class="memItemRight" valign="bottom"><b>lastModified</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a346e29d99343829488a227b52622e206"></a><!-- doxytag: member="RestAPI::amazon::S3::FileObject::existedRemote" ref="a346e29d99343829488a227b52622e206" args="" -->
&#160;</td><td class="memItemRight" valign="bottom"><b>existedRemote</b></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Object to store. </p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="aaa1c11c01850529f8a8cb4ac67440125"></a><!-- doxytag: member="RestAPI::amazon::S3::FileObject::__init__" ref="aaa1c11c01850529f8a8cb4ac67440125" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">def <a class="el" href="classRestAPI_1_1amazon_1_1S3_1_1FileObject.html#aaa1c11c01850529f8a8cb4ac67440125">RestAPI.amazon.S3.FileObject.__init__</a> </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>parentBucket</em> = <code>None</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>content</em> = <code>None</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Init a remote File Object inside a bucket. </p>
<p>You can latter upload/download/sync to/from local file. </p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="acb46cfdb5076fd71fc39a15e8fba342f"></a><!-- doxytag: member="RestAPI::amazon::S3::FileObject::addVersion" ref="acb46cfdb5076fd71fc39a15e8fba342f" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">def <a class="el" href="classRestAPI_1_1amazon_1_1S3_1_1FileObject.html#acb46cfdb5076fd71fc39a15e8fba342f">RestAPI.amazon.S3.FileObject.addVersion</a> </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>versionID</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>lastModified</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>etag</em> = <code>None</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>size</em> = <code>None</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>isLatest</em> = <code>True</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>DeleteMarker</em> = <code>False</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Add a verion to the file object. </p>

</div>
</div>
<a class="anchor" id="ad68bf7019ee5b7c08d7263522e87aa3d"></a><!-- doxytag: member="RestAPI::amazon::S3::FileObject::chmod" ref="ad68bf7019ee5b7c08d7263522e87aa3d" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">def <a class="el" href="classRestAPI_1_1amazon_1_1S3_1_1FileObject.html#ad68bf7019ee5b7c08d7263522e87aa3d">RestAPI.amazon.S3.FileObject.chmod</a> </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>acl</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Change the access control list of the current file object. </p>

</div>
</div>
<a class="anchor" id="a4488512e5d71897212c80a85e7af0747"></a><!-- doxytag: member="RestAPI::amazon::S3::FileObject::delete" ref="a4488512e5d71897212c80a85e7af0747" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">def <a class="el" href="classRestAPI_1_1amazon_1_1S3_1_1FileObject.html#a4488512e5d71897212c80a85e7af0747">RestAPI.amazon.S3.FileObject.delete</a> </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>self</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Delete the file object from the remote server. </p>

</div>
</div>
<a class="anchor" id="a85511ffd90c357f33efb69a6cbc5455e"></a><!-- doxytag: member="RestAPI::amazon::S3::FileObject::sync" ref="a85511ffd90c357f33efb69a6cbc5455e" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">def <a class="el" href="classRestAPI_1_1amazon_1_1S3_1_1FileObject.html#a85511ffd90c357f33efb69a6cbc5455e">RestAPI.amazon.S3.FileObject.sync</a> </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>source</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Check if the file in remote(target) and local(source) is the same. </p>
<p>If they are different, upload/download the file to make them consistent. Is it possible to store files in piece on remote server so that we can rsync? better performance(lower brandwidth) but more complicated. </p>

</div>
</div>
<a class="anchor" id="a2437ba0d210f9d433f5e52455b6cf2d9"></a><!-- doxytag: member="RestAPI::amazon::S3::FileObject::torrent" ref="a2437ba0d210f9d433f5e52455b6cf2d9" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">def <a class="el" href="classRestAPI_1_1amazon_1_1S3_1_1FileObject.html#a2437ba0d210f9d433f5e52455b6cf2d9">RestAPI.amazon.S3.FileObject.torrent</a> </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>torrentFile</em> = <code>None</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the torrent for downloading the file. </p>
<p>Return the torrent content if torrentFile name is not specified. </p>

</div>
</div>
<a class="anchor" id="a179770be78a633bfc366dcf54296d562"></a><!-- doxytag: member="RestAPI::amazon::S3::FileObject::uploader" ref="a179770be78a633bfc366dcf54296d562" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">def <a class="el" href="classRestAPI_1_1amazon_1_1S3_1_1FileObject.html#a179770be78a633bfc366dcf54296d562">RestAPI.amazon.S3.FileObject.uploader</a> </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>sourcefname</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>chuckSize</em> = <code>1024</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Upload large files one chunck at a time using multipart. </p>
<p>Skip the already uploaded part. </p>

</div>
</div>
<a class="anchor" id="ae4c66b2c4a1dc8635c65ceb2327b627f"></a><!-- doxytag: member="RestAPI::amazon::S3::FileObject::url" ref="ae4c66b2c4a1dc8635c65ceb2327b627f" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">def <a class="el" href="classRestAPI_1_1amazon_1_1S3_1_1FileObject.html#ae4c66b2c4a1dc8635c65ceb2327b627f">RestAPI.amazon.S3.FileObject.url</a> </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>expires</em> = <code>'1hour'</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the temporary URL to access the protected resource. </p>
<p>The expiration time can be 1-3 hours. </p>

</div>
</div>
<a class="anchor" id="ac40bdb9fe079b587989e36e50fb28e47"></a><!-- doxytag: member="RestAPI::amazon::S3::FileObject::useRevision" ref="ac40bdb9fe079b587989e36e50fb28e47" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">def <a class="el" href="classRestAPI_1_1amazon_1_1S3_1_1FileObject.html#ac40bdb9fe079b587989e36e50fb28e47">RestAPI.amazon.S3.FileObject.useRevision</a> </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>revision</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Change the file object to a specific version. </p>
<p>Example: useRevision(19) useRevision('r19') useRevision('first') useRevision('last') </p>

</div>
</div>
<a class="anchor" id="ad046fe5072f3b4e0a838767465caecf9"></a><!-- doxytag: member="RestAPI::amazon::S3::FileObject::useVersion" ref="ad046fe5072f3b4e0a838767465caecf9" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">def <a class="el" href="classRestAPI_1_1amazon_1_1S3_1_1FileObject.html#ad046fe5072f3b4e0a838767465caecf9">RestAPI.amazon.S3.FileObject.useVersion</a> </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>versionID</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Change the file object to a specific version. </p>
<p>Example: </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>amazon/S3.py</li>
</ul>
</div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Thu Jan 24 2013 00:42:22 for RestAPI by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
